(function($){
  $.datalink = function(el, params){
    var base = this;
    base.$el = $(el);
    base.el = el;
    base.$el.data("defaultValue", base);

    base.init = function(){
       base.$el.data('href', base.$el.attr('href'));
       base.$el.attr('href', null);
    };

    base.init();
  };

  $.fn.datalink = function(params){
    return this.each(function(){
      (new $.datalink(this, params));
    });
  };
})(jQuery);